/**
 * This function logs the user out of the app
 *
 ***************************************************************
 *  Example
 **************************************************************
 *  
 **************************************************************
 *
 * @author nicholas malacarne <nicholas.malacarne@gmail.com>
 */

$.loadScript( "js/ajax/logout.ajax.js" );
$.loadScript( "js/filters/logout.filter.js" );

function logout_event( event ){
   
   // prevent default action of event -nm
   event.preventDefault();
   
   // TODO: make logout AJAX call -nm
   logout_ajax().done( logout_filter );
};